﻿
using Microsoft.AspNetCore.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Project.WebAPI.Config
{
    /// <summary>
    /// SignalR 集线器
    /// </summary>
    //[HubName("phub")]
    public class ProjectHub : Hub
    {

        public ProjectHub()
        {

        }

        public async Task Send(string message)
        {
            var name = Guid.NewGuid().ToString().ToUpper();
            await Clients.All.SendAsync(name, message);
        }

    }
}
